package com.dhemery.mack.adapters.tests;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.ImageData;

public class FakeImageDescriptor extends ImageDescriptor {
	private final String name;

	public FakeImageDescriptor(String name) {
		this.name = name;
	}

	public String getFakeName() {
		return name;
	}

	public ImageData getImageData() {
		return null;
	}
	
	@Override
	public boolean equals(Object other) {
		return toString().equals(other.toString());
	}

	@Override
	public String toString() {
		return getFakeName();
	}
}